package m1.server;

import m2.component.ComponentInterface;
import m2.service.ProvidedService;

public class ServerInterfaceProvided extends ComponentInterface{

	/**
	 * 
	 */
	public ServerInterfaceProvided(){
		//********serverInService********
		ProvidedService serverOutService = new ProvidedService();
		serverOutService.setNameService("serverOutService");
		setService(serverOutService);
		
		//********receiveRequestServerService********
		ProvidedService sendRequestServerService = new ProvidedService();
		sendRequestServerService.setNameService("sendRequestServerService");
		setService(sendRequestServerService);
	}

	@Override
	/**
	 * 
	 */
	public void buildService() {
		serviceUsePorts("serverOutService", "ServerOut");
		serviceUsePorts("sendRequestServerService", "SendRequestServer");
	}
	
	
}
